package com.example.ticketingserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName ordertext
 */
@Schema(name = "订单表")
@TableName(value ="ordertext")
@Data
public class Ordertext implements Serializable {
    /**
     * 订单号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 车次id
     */
    private Integer lineid;

    /**
     * 订单创建日期和时间
     */
    private Date date;

    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Line line;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}